﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="bankaccount_upload.aspx.cs" Inherits="Customer_Profile.eCard.Match.bankaccount_upload" %>
<%@ Register Src="~/mainTop.ascx" TagName="mainTop" TagPrefix="uc1" %>
<%@ Register assembly="DevExpress.Web.ASPxGridView.v9.3, Version=9.3.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v9.3, Version=9.3.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
     <link href="/css/style.css" type="text/css" rel="stylesheet">
     <script language="javascript">
         function filecheckok() {
             var filepath = document.getElementById("FileUpload1");
             if (filepath.value == 'null' || filepath.value == '') {
                 alert("请先选择要上传的文件");
                 return false;
             }
             return true;
         }
         
         function filenamecheckok() {
             var filepath = document.getElementById("hidFileName");
             if (filepath.value == 'null' || filepath.value == '') {
                 alert("请先上传文件");
                 return false;
             }
             return true;
         }
     </script>
</head>
<body>
    <form id="form1" runat="server">    
        <table height="100%" cellspacing="0" cellpadding="0" width="100%" border="0">
            <tr>
                <td width="1" background="/images/dot_vline.gif">
                    <img height="1" src="/images/spacer.gif" width="1"></td>
                <td valign="top" width="15">
                    <img height="1" src="/images/spacer.gif" width="15"></td>
                <td id="TD1" valign="top" runat="server">
                    <table cellspacing="0" cellpadding="0" width="100%" border="0">                       
                        <tr>
                            <td height="23">
                                <span class="navi-blk">
                                    <uc1:mainTop ID="MainTop1" runat="server"></uc1:mainTop>
                                    个人旅行卡管理>核帐管理>银行账单导入</span>
                            </td>
                        </tr>
                        <tr>
                            <td background="/images/dot_hline.gif">
                                <img height="1" src="/images/spacer.gif" width="1"></td>
                        </tr>
                    </table>
                    <table cellspacing="0" cellpadding="0" width="100%" border="0">
                        <tr>
                            <td>
                                <img height="8" src="/images/spacer.gif" width="1"></td>
                        </tr>
                    </table>
                    <table cellspacing="0" cellpadding="0" width="100%" border="0">
                        <tr>
                            <td>
                                <table bordercolor="#c2d2e2" cellspacing="0" cellpadding="2" width="100%" border="1">                                    
                                    <tr>
                                        <td align="right" width="20%">标题：</td>
                                        <td><asp:TextBox ID="txtTitle" class="input2" runat="server" width="300"></asp:TextBox></td>
                                    </tr>
                                    <tr>
                                        <td align="right">银行名称：</td>
                                        <td><asp:DropDownList ID="dropBank" runat="server">                                                
                                            </asp:DropDownList>
                                         </td>                                               
                                    </tr>
                                    <tr>
                                        <td align="right">请选择文件：</td>
                                        <td><asp:FileUpload ID="FileUpload1" runat="server" class="button" width="300" />
                                            <asp:HiddenField ID="hidFileName" runat="server"  />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right">提示信息：</td>
                                        <td><asp:Label ID="lblWarning" runat="server" Text="请上传文件" Font-Bold="True" ForeColor="Red"></asp:Label>  </td>
                                    </tr>
                                    <tr>
                                        <td align="right">
                                            
                                        </td>
                                        <td>
                                            <asp:Button ID="Button1" runat="server" onclick="Button1_Click"  OnClientClick="return filecheckok();" class="button" Text="文件上传" />
                                            <asp:Button ID="Button2" runat="server" Text="数据导入" class="button" onclick="Button2_Click" OnClientClick="return filenamecheckok();" />
                                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                            <a href="/eCard/Match/netbank_module/netbank.xlsx">模板下载 </a>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2">
                                            <table cellspacing="0" cellpadding="0" width="100%" border="0">
                                                <tr>
                                                    <td bgcolor="#1765a7">
                                                        <img height="11" src="/images/pic_results.gif" width="61"></td>
                                                </tr>
                                            </table>
                                            <dx:ASPxGridView ID="gridBankcflowDetail" runat="server" 
                                                CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" 
                                                CssPostfix="Office2003Blue" Width="100%">
                                                <settingspager mode="ShowAllRecords">
                                                </settingspager>
                                                <settings showcolumnheaders="False" showverticalscrollbar="True" />

<Settings ShowColumnHeaders="False" ShowVerticalScrollBar="True" verticalscrollableheight="350"></Settings>

                                                <Images SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css">
                                                    <LoadingPanelOnStatusBar Url="~/App_Themes/Office2003Blue/GridView/gvLoadingOnStatusBar.gif">
                                                    </LoadingPanelOnStatusBar>
                                                    <LoadingPanel Url="~/App_Themes/Office2003Blue/GridView/Loading.gif">
                                                    </LoadingPanel>
                                                </Images>
                                                <ImagesFilterControl>
                                                    <LoadingPanel Url="~/App_Themes/Office2003Blue/Editors/Loading.gif">
                                                    </LoadingPanel>
                                                </ImagesFilterControl>
                                                <Styles CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" 
                                                    CssPostfix="Office2003Blue">
                                                    <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                                    </Header>
                                                    <LoadingPanel ImageSpacing="10px">
                                                    </LoadingPanel>
                                                </Styles>
                                                <StylesEditors>
                                                    <ProgressBar Height="25px">
                                                    </ProgressBar>
                                                </StylesEditors>
                                            </dx:ASPxGridView>                                         
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>
                <td valign="top" width="10"><img height="1" src="/images/spacer.gif" width="10"></td>
        </tr> 
    </table> 
    </form>
</body>
</html>